<!--拒绝原因-->
<div id="save-modal" style="top: 20%;" class="modal fade modal_small" role="dialog" aria-labelledby="myModalLabel1" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                <h4 class="modal-title"></h4>
            </div>
            <form action="<?php echo getUrl('config/applyads/refuse');?>" class="form-horizontal" id="save-form" method="post">
                <div class="modal-body">
                    <div class="form-group">
                        <label class="control-label col-md-3">拒绝原因<span class="required">*</span></label>
                        <div class="col-md-9">
                            <textarea  class="form-control required" name="note" rows="5"></textarea>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <input type="hidden" name="id" value="">
                    <button class="btn green field-submit-btn"><i class="fa fa-save"></i> 保存</button>
                    <script type="text/javascript">
                        $(function() {
                            var modal = $('#save-modal');
                            $('.refuse').live('click',function () {
                                var nickname = $(this).attr('data-nickname');
                                var id = $(this).attr('data-id');
                                modal.find('.modal-title').html('拒绝广告申请 - '+nickname);
                                modal.find('input[type="text"]').val('');
                                modal.find('[name="id"]').val(id);
                                modal.find('.has-error').removeClass('has-error').find('.validate_message').remove();
                                modal.find('.show_message_error').remove();
                                modal.modal();
                            });
                            $.e_validate.init('#save-form', {modal: modal, ignore: '', successCallback: function (data) {
                                $("#datatable_ads").dataTable().fnDraw();
                            }});
                        });
                    </script>
                </div>
            </form>
        </div>
    </div>
</div>